package controller.commands
{
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	
	import controller.events.ApplicationEvent;
	
	import mx.controls.Alert;

	public class GlobalCommand implements ICommand
	{
		public function GlobalCommand()
		{
			//
		}

		public function execute(event:CairngormEvent):void
		{
			var data:* = (event as ApplicationEvent).value;
			if(data is String)
			{
				switch(data)
				{
					default:
						Alert.show("No action assigned for " + data);
					break;
				}
			}
		}
		
	}
}